package lesson14;

public class Person 
{
	public String name;
	short age;
	String perosnalNumber;
	char sex;
	double weight;
	Person friend;
	int number;
	int healthStatus = 50;// from 0 to 100
	int starvationSatus = 50;//from 0 to 100
	int mentalStatus = 50;//form 0 to 100
	void eat(int foodVolume)
	{
		if(starvationSatus+foodVolume >= 100)
			starvationSatus = 100;
		else
			starvationSatus += foodVolume;
	}
	void walk()
	{
		System.out.println(name + " is walking");
		starvationSatus-=5;
	}
	void growup()
	{
		age++;
	}
	void drinkWater(double litres)
	{
		System.out.println(name + " is drinking" + litres + " litres ogf water");
		starvationSatus +=10;
	}
}
